
package com.thon.service.system;

import java.util.List;

import com.thon.dao.util.Page;
import com.thon.entity.system.Dic;
import com.thon.entity.system.DicData;

/**
 * @file DicService.java
 * @author manpiaoyi
 * @email manpiaoyi@126.com
 * @date 2014-10-28
 * @description 字典服务
 */
public interface DicService {
	
	public Dic read(Integer id);	
	
	public List<Dic> readList();
	
	public Page<Dic> readListPage(Integer pageNo,Integer pageSize);

    public String create(Dic dicInfo);
    
    public String delete(Integer id);
    
    public String update(Dic dicInfo);
    
    public DicData readDicData(Integer id);	
	
	public List<DicData> readDicDataList();
	
	public Page<DicData> readDicDataListPage(Integer pageNo,Integer pageSize);
	
	public Page<DicData> selectDicDataListPage(String by,Object val,Integer pageNo,Integer pageSize);

    public String createDicData(DicData dicInfo);
    
    public String deleteDicData(Integer id);
    
    public String updateDicData(DicData dicInfo);
    
    public List<DicData> getDicData(String by, Object val);
    
    public boolean checkDicUnique(String by, Object val); 
    
    public boolean checkDicDataUnique(String by, Object val);
    
}